package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_SO_SCHEME"
 *     
*/
public class CcpSoScheme implements Serializable {

    /** identifier field */
    private String schGuid;

    /** nullable persistent field */
    private String schNo;

    /** nullable persistent field */
    private String name;

    /** nullable persistent field */
    private String url;

    /** nullable persistent field */
    private String descript;

    /** nullable persistent field */
    private String schType;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpSoScheme(String schGuid, String schNo, String name, String url, String descript, String schType, String reserved1, String reserved2, String reserved3) {
        this.schGuid = schGuid;
        this.schNo = schNo;
        this.name = name;
        this.url = url;
        this.descript = descript;
        this.schType = schType;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpSoScheme() {
    }

    /** minimal constructor */
    public CcpSoScheme(String schGuid) {
        this.schGuid = schGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SCH_GUID"
     *         
     */
    public String getSchGuid() {
        return this.schGuid;
    }

    public void setSchGuid(String schGuid) {
        this.schGuid = schGuid;
    }

    /** 
     *            @hibernate.property
     *             column="SCH_NO"
     *             length="50"
     *         
     */
    public String getSchNo() {
        return this.schNo;
    }

    public void setSchNo(String schNo) {
        this.schNo = schNo;
    }

    /** 
     *            @hibernate.property
     *             column="NAME"
     *             length="100"
     *         
     */
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /** 
     *            @hibernate.property
     *             column="URL"
     *             length="300"
     *         
     */
    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    /** 
     *            @hibernate.property
     *             column="DESCRIPT"
     *             length="300"
     *         
     */
    public String getDescript() {
        return this.descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    /** 
     *            @hibernate.property
     *             column="SCH_TYPE"
     *             length="1"
     *         
     */
    public String getSchType() {
        return this.schType;
    }

    public void setSchType(String schType) {
        this.schType = schType;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="200"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="200"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="200"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("schGuid", getSchGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpSoScheme) ) return false;
        CcpSoScheme castOther = (CcpSoScheme) other;
        return new EqualsBuilder()
            .append(this.getSchGuid(), castOther.getSchGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSchGuid())
            .toHashCode();
    }

}
